package com.xyd.Dao;

import com.xyd.Entity.OrderForm;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @ClassName: OrderFormDao
 * @Description:
 * @Author 余全盛
 * @Date: 2021/10/15 16:03
 */
public interface OrderFormDao {
    int  addSonOrder(@Param("com_id") int com_id, @Param("num") int num, @Param("price") Double price, @Param("sonordersum") double sonordersum, @Param("fatherorderid") long fatherorderid);

    List<OrderForm> selectSonOrder(long fatherOrderid);

    List<OrderForm> selectAllSonOrder();

    int updateSonOrderState(@Param("sonorderstate") int state,@Param("sonorderid") int sonorderid);
    int updateSonOrderStateByFatherOrderID(@Param("sonorderstate") int state,@Param("fatherorderid") long fatherorderid);
}
